package org.generic.component;

public class ResourceProperty {

	private int id;
	private String name;
	private short x;
	private short y;
	private short w;
	private short h;
	private int bkgColor;
	private int frgColor;
	
	public ResourceProperty (int id, String name, short x, short y, short w, short h, int c1, int c2) {
		this.id = id;
		this.name = name;
		this.x = x;
		this.y = y;
		this.w = w;
		this.h = h;
		this.bkgColor = c1;
		this.frgColor = c2;
	}
	
	public ResourceProperty (int id, String name, short x, short y) {
		this.id = id;
		this.name = name;
		this.x = x;
		this.y = y;
		this.w = -1;
		this.h = -1;
		this.bkgColor = -1;
		this.frgColor = -1;
	}
	
	public void setId(int id) {
		this.id = id;
	}
	public int getId() {
		return id;
	}
	
	public short getX() {
		return x;
	}
	public void setX(short x) {
		this.x = x;
	}
	public short getY() {
		return y;
	}
	public void setY(short y) {
		this.y = y;
	}
	public short getW() {
		return w;
	}
	public void setW(short w) {
		this.w = w;
	}
	public short getH() {
		return h;
	}
	public void setH(short h) {
		this.h = h;
	}
	public int getBkgColor() {
		return bkgColor;
	}
	public void setBkgColor(int bkgColor) {
		this.bkgColor = bkgColor;
	}
	public int getFrgColor() {
		return frgColor;
	}
	public void setFrgColor(int frgColor) {
		this.frgColor = frgColor;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
}
